package com.xywl.escort.view.order.purchase.delivered;

import com.xywl.escort.base.BasePresenter;
import com.xywl.escort.base.BaseView;
import com.xywl.escort.bean.BaseResp;
import com.xywl.escort.bean.LogisticsResp;
import com.xywl.escort.bean.PurchaseOrderListResp;

class DeliveredOrderContract {

    interface Presenter extends BasePresenter {
        void takeView(DeliveredOrderContract.View view);

        void loadOrder(int orderStatus, int pageNum);

        void orderCancel(String id, int position);

        void orderDelete(String id, int position);

        void remind(String id);

        void confirm(String id);

        void orderLogistics(String id);
    }

    interface View extends BaseView<Presenter> {
        void loadOrderSuccess(PurchaseOrderListResp resp);

        void loadOrderFailure();

        void orderCancelSuccess(BaseResp resp, int position);

        void orderCancelFailure(String msg);

        void orderDeleteSuccess(BaseResp resp, int position);

        void orderDeleteFailure(String msg);

        void orderRemindSuccess(BaseResp resp);

        void orderRemindFailure(String msg);

        void orderConfirmSuccess(BaseResp resp);

        void orderConfirmFailure(String msg);

        void orderLogisticsSuccess(LogisticsResp.DataBean dataBean);

        void orderLogisticsFailure(String msg);
    }
}
